<div class="commodity">
    <div class="commodity-img" onclick="href_goods_detail('{code}')">
        <img style="width: 3rem; height: 3rem;" src="{pic}">
    </div>
    <div class="commodity-right">
        <div class="commodity-name" onclick="href_goods_detail('{code}')">{name}</div>
        <div class="commodity-label">
            <div class="commodity-integral">
                <div class="commodity-integral-div">{price}</div>
            </div>
            <div class="commodity-car" onclick="addShoppingCart('{code}')">
                <div class="commodity-car-img"></div>
                <div class="commodity-car-div">添加购物车</div>
            </div>
        </div>
    </div>
</div>